﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindowsFormsApplication1
{
    class Complex_number : Number
    {

        public Complex_number(double re, double im)
        {
            this.real_part = re;
            this.imaginary_part = im;
        }

        public override double imaginary_part 
        {
            get { return imaginary_part; }
            set { real_part = value; }
        }

        public override string Tostring()
        {
            return this.real_part + " + i*" + this.imaginary_part;
        }
    }

}
